import {apiSlice} from "@store/apiSlice/index";



export const authApiSlice = apiSlice.injectEndpoints({
    endpoints: (builder) => ({
        //密码登录
        loginByPassword: builder.mutation<
            AuthResponse,
            { password:string;mobile:string }
            >({
            query:(body) => ({url:'/login/password',method:'POST',body})
        })
    })
})
// @ts-ignore
export const {useLoginByPasswordMutation} = authApiSlice